﻿namespace Beetle
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Configuration;

    public class ServerNode : ConfigurationElement
    {
        [GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
        internal const string _field_a = "host";
        [GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
        internal const string _field_b = "port";
        [GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
        internal const string _field_c = "name";
        [GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
        internal const string _field_d = "detectTime";
        [GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
        internal const string _field_e = "maxConnections";

        [GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
        public override bool IsReadOnly()
        {
            return false;
        }

        [GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5"), ConfigurationProperty("detectTime", IsRequired=false, IsKey=false, IsDefaultCollection=false, DefaultValue=30), Description("The DetectTime.")]
        public virtual int DetectTime
        {
            get
            {
                return (int) base["detectTime"];
            }
            set
            {
                base["detectTime"] = value;
            }
        }

        [ConfigurationProperty("host", IsRequired=true, IsKey=false, IsDefaultCollection=false), Description("The Host."), GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
        public virtual string Host
        {
            get
            {
                return (string) base["host"];
            }
            set
            {
                base["host"] = value;
            }
        }

        [ConfigurationProperty("maxConnections", IsRequired=false, IsKey=false, IsDefaultCollection=false, DefaultValue=10), Description("The MaxConnections."), GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5")]
        public virtual int MaxConnections
        {
            get
            {
                return (int) base["maxConnections"];
            }
            set
            {
                base["maxConnections"] = value;
            }
        }

        [Description("The Name."), GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5"), ConfigurationProperty("name", IsRequired=true, IsKey=true, IsDefaultCollection=false)]
        public virtual string Name
        {
            get
            {
                return (string) base["name"];
            }
            set
            {
                base["name"] = value;
            }
        }

        [Description("The Port."), GeneratedCode("ConfigurationSectionDesigner.CsdFileGenerator", "2.0.0.5"), ConfigurationProperty("port", IsRequired=true, IsKey=false, IsDefaultCollection=false)]
        public virtual int Port
        {
            get
            {
                return (int) base["port"];
            }
            set
            {
                base["port"] = value;
            }
        }
    }
}

